Handling Dialog Box Events
The script can respond to user events by defining its own event handling function and passing the name of that function to the RunLayoutDialog call. When the user presses a button or clicks in a list, for example, VectorWorks will call the event handling function. The function will receive the control item number and any appropriate data. The procedure will be called with an item of SetupDialogC before the dialog box is displayed so that the script can initialize its controls.
 
Procedure HandleEvents( VAR item : LONGINT; data : LONGINT);
InsertChoice( kPullDown, 0, 'choice 0');
InsertChoice( kPullDown, 1, 'choice 1');

User Interface : Creating a Custom Dialog Box : Handling Dialog Box Events

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050